- if project_nav_tab? :team
  = nav_link(controller: [:project_members, :teams]) do
    = link_to namespace_project_project_members_path(@project.namespace, @project), title: '成员', class: 'team-tab tab' do
      %span
        成员
- if can_edit
  - if @project.allowed_to_share_with_group?
    = nav_link(controller: :group_links) do
      = link_to namespace_project_group_links_path(@project.namespace, @project), title: "群组" do
        %span
          群组
  = nav_link(controller: :deploy_keys) do
    = link_to namespace_project_deploy_keys_path(@project.namespace, @project), title: '部署密钥' do
      %span
        部署密钥
  = nav_link(controller: :hooks) do
    = link_to namespace_project_hooks_path(@project.namespace, @project), title: 'Web 钩子' do
      %span
        Web 钩子
  = nav_link(controller: :services) do
    = link_to namespace_project_services_path(@project.namespace, @project), title: '服务' do
      %span
        服务
  = nav_link(controller: :protected_branches) do
    = link_to namespace_project_protected_branches_path(@project.namespace, @project), title: '保护分支' do
      %span
        保护分支

  - if @project.builds_enabled?
    = nav_link(controller: :runners) do
      = link_to namespace_project_runners_path(@project.namespace, @project), title: 'Runners' do
        %span
          Runners
    = nav_link(controller: :variables) do
      = link_to namespace_project_variables_path(@project.namespace, @project), title: '变量' do
        %span
          变量
    = nav_link(controller: :triggers) do
      = link_to namespace_project_triggers_path(@project.namespace, @project), title: '触发器' do
        %span
          触发器
    = nav_link(controller: :pipelines_settings) do
      = link_to namespace_project_pipelines_settings_path(@project.namespace, @project), title: 'CI/CD 管道' do
        %span
          CI/CD 管道
